all: main.o
	mpiCC -pthread BestSolutionExchange.o SortedBuffer.o Tuple.o DppmParams.o LoadBalancing.o TuplesProcessing.o Utils.o main.o -o HPC
main.o: main.cpp BestSolutionExchange.o SortedBuffer.o DppmParams.o LoadBalancing.o TuplesProcessing.o Utils.o Tuple.o
	mpiCC -c main.cpp
BestSolutionExchange.o: SortedBuffer.o DppmParams.o BestSolutionExchange.h BestSolutionExchange.cpp
	mpiCC -c BestSolutionExchange.cpp
TuplesProcessing.o: DppmParams.o SortedBuffer.o TuplesProcessing.cpp TuplesProcessing.h
	mpiCC -c TuplesProcessing.cpp
LoadBalancing.o: LoadBalancing.cpp LoadBalancing.h SortedBuffer.o DppmParams.o
	mpiCC -c LoadBalancing.cpp
DppmParams.o: DppmParams.h DppmParams.cpp Tuple.o
	mpiCC -c DppmParams.cpp
SortedBuffer.o: SortedBuffer.cpp SortedBuffer.h Tuple.o
	mpiCC -c SortedBuffer.cpp
Tuple.o: Tuple.cpp Tuple.h
	mpiCC -c Tuple.cpp
Utils.o: Utils.cpp Utils.h
	mpiCC -c Utils.cpp
clean:
	rm BestSolutionExchange.o 
	rm SortedBuffer.o
	rm DppmParams.o
	rm LoadBalancing.o
	rm TuplesProcessing.o
	rm Utils.o
	rm main.o
	rm HPC